import request from '@/utils/request'

// 查询缴费名单列表
export function listAct_stu(query) {
  return request({
    url: '/campus/act_stu/list',
    method: 'get',
    params: query
  })
}

// 查询缴费名单列表
export function personActStu(query) {
  return request({
    url: '/campus/act_stu/myAct',
    method: 'get',
    params: query
  })
}

// 查询缴费名单详细
export function getAct_stu(payId) {
  return request({
    url: '/campus/act_stu/' + payId,
    method: 'get'
  })
}
// 查询缴费名单详细
export function getActStudents(actId) {
  return request({
    url: '/campus/act_stu/stu/' + actId,
    method: 'get'
  })
}

// 新增缴费名单
export function addAct_stu(data) {
  return request({
    url: '/campus/act_stu',
    method: 'post',
    data: data
  })
}
// 新增缴费名单
export function addActStudents(data) {
  return request({
    url: '/campus/act_stu/add',
    method: 'post',
    data: data
  })
}

// 修改缴费名单
export function updateAct_stu(data) {
  return request({
    url: '/campus/act_stu/put',
    method: 'post',
    data: data
  })
}

// 删除缴费名单
export function delAct_stu(payId) {
  return request({
    url: '/campus/act_stu/' + payId+'/delete',
    method: 'post'
  })
}
